<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>
<div class="pageContent">
<form method="post" action="${r"${contextPath}"}/${table.instanceName}/create" class="required-validate pageForm" onsubmit="return validateCallback(this, dialogReloadNavTab);">
	<div class="pageFormContent" layoutH="58">
	
		<#if table.pk.isAutoIncrement==false>
			<p>
			   <label>${table.pk.comment}：</label>
			   <input type="text" name="${table.pk.fieldName}"   class="input-medium <#if table.pk.nullable==false>validate[required] required</#if>" maxlength="${table.pk.size}"/>
			</p>
		</#if>
		
		<#list table.columns as column>
			<#if column.isKey==false>
			<#if column.javaType!="Date">
				<p>
					<label>${column.comment}：</label>
					<input type="text" name="${column.fieldName}"   class="input-medium <#if column.nullable==false>validate[required] required</#if>" maxlength="${column.size}"/>
				</p>
			<#else>	
				<p>
				<label>${column.comment}：</label>
					<input type="text" name="${column.fieldName}" class="input-medium <#if column.nullable==false>validate[required] required</#if> date"   readonly="readonly" style="float:left;"/>
					<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
				</p>
			</#if>
			
			</#if>	
		</#list>		
		
	
		
	</div>
			
	<div class="formBar">
		<ul>
			<li><div class="button"><div class="buttonContent"><button type="submit">确定</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
</form>
</div>